package me.itsoo.artemis.framework.ioc.factory;

import lombok.Data;
import me.itsoo.artemis.framework.ioc.bean.BeanInitializer;
import me.itsoo.artemis.framework.ioc.lang.Bean;
import me.itsoo.artemis.framework.ioc.lang.Inject;

import java.util.Objects;

/**
 * BarBean
 *
 * @author zxy
 * @version 0.0.1
 * @since 2023/6/6
 */
@Bean
@Data
public class BarBean implements BeanInitializer {

    @Inject
    private BongBean bongBean;

    @Override
    public void init() {
        System.out.println("初始化完成 bongBean not null ==> " + Objects.nonNull(bongBean));
    }
}
